package com.ruicar.afs.cloud.channel.grade.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description:指标详细配置项
 * @param:
 * @return:
 * @auther: jiangxiongfei
 * @date: 2020-08-20 14:23
 */
@Data
@Accessors(chain = true)
@TableName("grade_model_element_list")
@EqualsAndHashCode(callSuper = true)
public class GradeModelElementList extends Model<GradeModelElementList> {

    @ApiModelProperty(value = "物理主键id")
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "评级模型代码")
    private String modelCode;

    @ApiModelProperty(value = "指标编号")
    private String elementNo;

    @ApiModelProperty(value = "要素上限值")
    private BigDecimal highLimit;

    @ApiModelProperty(value = "要素下限值")
    private BigDecimal lowLimit;

    @ApiModelProperty(value = "是否包含-上限")
    private Boolean isHighLimit;

    @ApiModelProperty(value = "是否包含-下限")
    private Boolean isLowLimit;

    @ApiModelProperty(value = "要素值")
    private String elementValue;

    @ApiModelProperty(value = "指标要素得分")
    private String score;

    @ApiModelProperty(value = "分数类型：数值定值，公式表示型")
    private String scoreType;

    @ApiModelProperty(value = "分数描述")
    private String scoreDesc;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "流水号")
    private Integer seqno;

    @ApiModelProperty(value = "时间戳")
    private Date timestamps;

    @ApiModelProperty(value = "最后更新操作员号")
    private String lastUpdTlr;

    @ApiModelProperty(value = "上次操作XX")
    private String lastUpdFunc;

    @ApiModelProperty(value = "最后更新时间")
    private Date lastUpdDate;

}
